package com.smarttourism.domain;

import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.springframework.format.annotation.DateTimeFormat;

import java.util.Date;

@Data
@NoArgsConstructor
@AllArgsConstructor
public class Bill {
    //    发票id
    private Integer id;
    //    关联订单id
    private Integer orderId;
    //    识别号
    private String num;
    //    发票代码
    private String billNum;
    //    开票日期
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @DateTimeFormat(pattern = "yyyy-MM-dd")
    private Date createTime;
    //    税率
    private Double rate;
    //    开票金额
    private Double money;
    //    税额
    private Double retemoney;
    //    备注
    private String info;
    //    逻辑删除标志
    private Integer del;


    private Roomorder roomorder;
}
